Communication interface for an electronic device

ABSTRACT

A mobile telephone handset is provided with a connector ( 8 ) and circuitry ( 18, 19 ) which permits universal serial bus (USB) and single-ended (SE) modes of data transmission with another device such as a personal computer, another mobile telephone handset or keyboard.

FIELD OF THE INVENTION

[0001] The present invention relates to a communication interface for permitting an electronic device to be in communication with another electronic device using first or second data transmission modes.

BACKGROUND ART

[0002] A Universal Serial Bus (USB) standard has been developed which allows up to 127 peripheral devices such as printers, scanners, keyboards, modems, cameras and storage devices to be attached to a host, usually a personal computer (PC), through a 4-wire bus. These devices can be connected to the PC either directly or via hubs which provide additional connections. USB has the advantage that connection of different types of devices becomes standardised. Furthermore, a device can be connected while the PC is switched on and while other devices are in use. USB can support data rates as high as 480 Mbps. An overview of USB may be found in “USB Hardware & Software” by J. Garney et al. (Anna Books, 1998) [ISBN 0-929392-3-X] and a current version of the USB specification is available at www.usb.org or from USB-IF Administration, 5440 SW Westgate Drive, Suite 217, Portland, Oreg. 97221 USA.

[0003] Mobile telephone handsets are being introduced which support USB. A USB interface allows them to be connected to a PC or a peripheral device. In this way, a handset may serve as a peripheral device or a host. Although such a handset will enjoy many of the advantages of USB, there are, however, some drawbacks. Simple peripheral devices for connecting to the handset are made unnecessarily complex and expensive since they themselves must support USB. Furthermore, once connected, these devices draw a high current from the handset, which has limited power resources.

[0004] Mobile telephone handsets arc known which have simple serial communications interfaces based on the RS-232 standard and which use single-ended data transmission. This allows them to be connected to peripheral devices such as keyboards for entering text for short message service (SMS) and e-mail. These types of interfaces draw much less current and so are better suited to low power applications.

[0005] To overcome the drawbacks of having a USB interface, both types of interface may be included in a single handset. However, this is not practical for a small handset. Furthermore, this defeats the object of providing a standardised connector.

[0006] The present invention seeks to provide a solution to this problem.

DISCLOSURE OF THE INVENTION

[0007] According to the present invention there is provided a communication interface for permitting an electronic device to be in communication with another electronic device using first or second data transmission modes, the interface comprising first communication means for communication using said first mode, second communication means for communication using said second mode and switching means for selectively connecting the first and second communication means to a common transmission path.

[0008] The first mode of data transmission may comprise serial transmission of data, such as single-ended data transmission.

[0009] The second mode of data transmission may comprise serial transmission of data, such as differential transmission of data and may conform to a universal serial bus (USB) specification.

[0010] The interface may comprise first and second input/output data lines. The first and second input/output lines may be used to transmit and receive data using the second mode of data transmission. The first input/output data line may be used to receive data and said second input/output data line may be used to transmit data using said first mode of data transmission. The first input/output line may be used to receive and transmit data using said first mode of data transmission. The second input/output line may be used to receive and transmit data using said first mode of data transmission. The first and second input/output data lines may comprise D+ and D− lines respectively. The first and second input/output lines may be connectable to a data bus.

[0011] The interface may further comprise a connector for receiving a data bus, which may conform to the USB specification.

[0012] The first mode of data transmission may use a first set of voltage levels, while the second mode of data transmission may use a second, different set of voltage levels. The switching means may comprise means for shifting the first or second set of voltage levels to another set of voltage level.

[0013] The interface may further comprise means for determining the mode of data transmission on said common transmission path.

[0014] The means for determining the mode of data transmission may comprise means for sensing a status line. The means for determining the mode of data transmission may comprise means for detecting a power supply line.

[0015] The first communication means may be configured for full- or half-duplex communication

[0016] The interface may be incorporated into the electronic device.

[0017] According to the present invention there is also provided an electronic device including an interface.

[0018] According to the present invention there is also provided an electronic device including an interface. The electronic device may be portable and may be a mobile telephone handset, a personal digital assistant or a mobile communicator, a digital camera, an MP3 player or a handheld gaming system.

BRIEF DESCRIPTION OF THE DRAWINGS

[0019] An embodiment of the present invention will now be described, by way of example, with reference to the accompanying drawings in which:

[0020]FIG. 1 is a perspective view of a mobile telephone handset;

[0021]FIG. 2 is a schematic diagram of mobile telephone circuitry;

[0022]FIG. 3 is a schematic diagram of serial input/output circuitry;

[0023]FIG. 4 is a schematic diagram of transceiver circuitry;

[0024]FIG. 5 shows connection of a keyboard to a mobile telephone using single-ended data transmission and

[0025]FIG. 6 shows connection of a personal computer to a mobile telephone handset using bi-directional, differential data transmission.

BEST MODE FOR CARRYING OUT THE INVENTION

[0026] Referring to FIGS. 1 and 2, a mobile telephone handset 1 comprises a casing 2, a battery pack 3, liquid crystal display (LCD) panel 4, a microphone 5, an earpiece 6, keypad 7, a connector 8, antenna 9, subscriber identification module (SIM) card 10 and SIM card reader 11. Mobile telephone circuitry includes radio interface circuitry 12, codec circuitry 13, controller 14, memory 15 and input/output (I/O) transceiver circuitry 16. The I/O transceiver circuitry 16 allows single-ended (SE) and USB modes of serial data transmission.

[0027] Referring to FIG. 3, the I/O transceiver circuitry 16 includes a microcontroller unit (MCU) 17, a system application specific integrated circuit (ASIC) 18 and a transceiver circuit 19. In this example, the connector 8 is suitable for connecting the handset 1 to a USB host (not shown) and conforms to the USB specification. It will be appreciated that a so-called ‘B’-type plug may be used on the end of a connecting cable to connect the handset 1 to a USB peripheral device. The connector 8 is also suitable for connecting the handset 1 to other types of peripheral device (not shown) which use SE modes of data transmission. A mode of data transmission refers to an arrangement for transferring data between two entities, such as devices or circuits, and which may include hardware and software.

[0028] The connector 8 is a USB port having power (Vbus) and ground (GND) lines 20, 21 and a pair of data lines 22, 23 referred to as D+/RxD and D−/TxD. The connector 8 also has a status line (Id) 24 for determining the mode of data transmission between the handset 1 and an attached device (not shown). The power, ground and data lines 20, 21, 22, 23 feed into the transceiver circuit 19.

[0029] The transceiver circuit 19 can operate in two transmission modes, namely USB and SE transmission modes. Each transmission mode has its advantages. USB transmission uses a differential data transmission scheme which is used to achieve good noise rejection especially at high data rates. Meanwhile, SE transmission, unlike USB transmission, does not have strict timing requirements. Furthermore, SE transmission does not require a peripheral device, such as a keyboard (FIG. 5) to have or be provided with a 5-volt power source.

[0030] The transceiver circuit 19 serves as an interface between the system ASIC 18 and a data bus (not shown) connected to the connector 8. The transceiver circuit 19 level shifts and conditions data and so allows the handset 1 to be used with peripheral devices having either type of interface. For example, level shifting may include converting signals between relatively low voltages used by the ASIC 18 and relatively high voltages used for USB transmission, while signal conditioning may include setting rise and fall times on the D+/RxD and D−/TxD lines 22, 23.

[0031] The transceiver circuit 19 can be switched into USB transmission mode by applying a binary ‘0’ signal to a SE mode line 25 and into SE transmission mode by applying a ‘1’. The transceiver circuit 19 supports first and second data paths (Fse0/FTX, Vp/FRX) 26, 27 for receiving and transmitting data to and from the system ASIC 18. The relationship between the Fse0/FTX and Vp/FRX data paths 26, 27 and the D+/RxD and D−/TxD 22, 23 will be described in more detail later.

[0032] The transceiver circuit 19 is also provided with a plurality of USB-specific data and control lines. These include a received data line Vm 28 which provides a path for data received over the D−/TxD line 23, a differential received data line RCV 29, a transmit/receive control line OE# 30 for controlling whether data is transmitted or received, a transmit data line Vo 31 and a speed control line SPEED 32 which selects a transmitted data slew rate. In this example, the transmitted data slew rate may be between 4 and 20 ns or between 75 and 300 ns.

[0033] The system ASIC 18 includes a single-ended universal asynchronous receiver/transmitter circuit (SE UART) 33 and Universal Serial Bus (USB) logic circuit 34. The USB logic circuit 34 encodes and decodes USB data commands. The Fse0/FTX and Vp/FRX data paths 26, 27 are switched between the SE UART and the USB logic circuits 33, 34 by first and second pairs of switches 35 a, 35 b, 36 a, 36 b respectively controlled by a control line 37 from the MCU 17. The control line 37 also provides the signal through the SE mode line 25. The system ASIC 18 also includes a first detection circuit 38 ₁ which measures the resistance of the status line Id 24 on the connector 8 to determine the type of data transmission used by an attached device (not shown). The status line Id 24 is connected to a handset power supply 39, for example battery 3, through a weak pull-up resistor 40. In this example, the resistor 40 has a value of 220 kΩ. It will be appreciated that instead of measuring resistance, a signalling scheme may also be used. The system ASIC 18 may include a second detection circuit 38 ₂ which is connected to Vbus power line 23. The detection circuits 38 report to the MCU 17, which is thus able to determine the mode of data transmission.

[0034] The SE UART circuit 33 has SETx line 39 for transmitting data to the attached device (not shown) and a SERx line 40 for receiving data from the attached device (not shown).

[0035] The USB logic circuit 34 has a Se0_o line 43 for applying a signalling state SE0 to the Fse0/FTX line 26 so as to cause D+/RxD and D−/TxD lines 22, 23 to be driven at 0 volts and a Rxdp_i line 42 for detecting received D+ data.

[0036] The SE UART and USB logic circuits 33, 34 exchange command and transmission data with the MCU 17 by means of first and second buses 44, 45.

[0037] It will be appreciated that the transceiver circuit 19 may be modified, for example it may be provided with different data and control lines configurations. For example, the Fse0/FTX data line 26 and the transmit data line Vo 31 may be replaced by a Fse0 line and a Vo/FTX line respectively. As a result, the Fse0 lines serves a single function, namely to apply the SE0 signalling state in USB mode as described above. The Vo/FTX line has a dual function, namely to provide a transmit data line Vo as described above or a conventional TxD SE line as described below. This configuration requires modification of the ASIC 18, especially the switches 35, 36. Consequently, the Se0_o line 41 is permanently connected to the Fse0 line. The Vo/FTX line is connected to SETx line 39 of the UART 33 through the switch 35 a and also to a TxD_o line (not shown) of the USB logic circuit 34 through a switch (not shown) which is controlled by the control line 37.

[0038] Referring to FIG. 4, the transceiver circuit 19 exchanges signals with the system ASIC 19 at voltages Vio. The transceiver circuit 19 exchanges signals with an attached device (not shown), when in USB mode, at a nominal voltage of 3.3V, and, when in SE mode, at a voltage of Vreg. In this example, Vio<3.3V and Vio<Vreg. Thus, the transceiver circuit 19 level shifts signals between the ASIC 19 and the attached device (not shown).

[0039] The transceiver circuit 19 comprises first and second output means 46, 47. The transmit/receive control line OE# 30 enables the output means 46, 47 to transmit data, while the speed control line 32 determines the slew rate of the transmitted data.

[0040] In USB mode, the first output means 46 is supplied with transmission data from the USB transmit line Vo 31 from the USB logic circuit 34 and with a signal SE0 along the first data path Fse0/FTX 26. The second output means 47 is also supplied with transmission data from the USB transmit line Vo 31. The signal SE0 is used to control the first and second output means 46, 47 so as to drive D+=D−=0V. Thus, the D+/RxD and D−/TxD lines 22, 23 operate as D+ and D− respectively as conventional USB data lines.

[0041] In SE mode, the first output means 46 is supplied with transmission data from the first data path Fse0/FTX 26 from the SE UART 33. The signal SE mode 25 is used to switch the first and second output means 46, 47 into SE mode. Thus, the D−/TxD line 23 operates as TxD as a conventional SE line.

[0042] The transceiver 19 further comprises first, second and third input means 48, 49, 50.

[0043] In USB mode, the first input means 48 is supplied with received data from the D−/TxD line 23. It supplies the data to the USB logic 34 circuit using received data line Vm 28. Similarly, the second input means 49 is supplied with received data from the D+/RxD line 22. Again it passes the data to the USB logic circuit 34 using the second data line Vp/FRX 27. The third input means 50 receives data from both D+/RxD line 22 and D−/TxD line 23 and supplies a differential received data signal RCV to the USB logic circuit 34.

[0044] In SE mode, the second input means 49 is supplied with received data from the D+/RxD line 22. It supplies the data to the SE UART circuit 33 using second data line Vp/FRX 27.

[0045] In addition to switching data, the input and output means 48, 49, 50, 46, 47 also perform level shifting and signal conditioning on data received and transmitted to and from the attached device (not shown).

[0046] For shifting voltage levels of the received and transmitted signals, the transceiver circuit 19 is provided with voltage reference sources. While the handset is powered, the circuit 19 is continuously provided with a source Vio 51, while a source Vref 52 is controlled by the MCU 17. Vbus 20 is provided through the connector 8. Thus, in SE mode, the transceiver circuit 19 is supplied with voltage sources Vio 51 and Vreg 52, while in USB mode, it is provided with voltages sources Vio 51 and Vbus 20.

[0047] SE and USB modes of transmission will now be described.

[0048] Referring to FIGS. 3 and 5, a keyboard 53 which communicates according to RS-232 standard is connected to the handset 1 using the connector 8. The keyboard 53 has a resistor (not shown) which connects the status line 24 to ground. This is measured by the first detection circuit 38 ₁ and so the MCU 17 determines that the keyboard 53 is a simple peripheral device operating according to the single-ended transmission mode. The controller 17 applies a ‘1’ to the control line 37, which switches the transceiver 19 to SE transmission mode. The high signal on the control line 37 switches the data paths 26, 27 to the SETx and SERx lines 39, 40 respectively of the SE UART 33. As a result the D+ line 22 of the connector 8 is driven as a receive (Rx) line, while the D− line 23 of the connector 8 is driven as a transmit (Tx) line.

[0049] Referring to FIGS. 3 and 6, the handset 1 is connected using a USB cable 54 to a port 55 of a USB hub 56. The hub 56 is connected to a personal computer (not shown) by a cable 57. The status line 24 is unconnected and left to float at Vio. The second detection circuit 38 ₂ detects Vbus and so the microcontroller 17 determines that the handset 1 is connected to a USB host and should therefore operate according to USB transmission mode. The controller 17 applies a ‘0’ to the control line 37, which switches the transceiver 19 to USB transmission mode. The low signal on the control line 37 switches the data paths 26, 27 to the Se0_o and Rxdp_i lines 39, 40 respectively of the USB logic circuit 34. As a result the D+ and D− lines 22, 23 are used in conventional USB transmission mode. It will be appreciated that the handset 1 can be connected directly to a personal computer.

[0050] This has the advantage that a USB interface can be used and still have backward compatibility with systems which operate according to SE transmission. There is no need to provide additional pins or connectors.

[0051] In the example hereinbefore described, in SE mode, one line 22 is used for Rx and the other line 23 is employed for Tx. This allows the handset 1 to transmit and receive signals simultaneously with another device, i.e. full-duplex communication. However, one or both lines 22, 23 may be configured for half-duplex operation with one or more devices. For example, if each line 22, 23 is used for both transmitting and receiving in SE mode, i.e. half-duplex communication, then they can be used independently of one another and so permit the handset I to communicate with two other devices. The lines 22, 23 may be used for half-duplex communication with the same device. During half-duplex communication, the lines 22, 23 may transmit signals from the handset 1 at the same or different times.

[0052] It will be appreciated that many modifications may be made to the embodiment hereinbefore described. Many types of portable digital equipment may be used instead of a mobile telephone handset, such as a personal digital assistant, a digital camera, an MP3 player or a portable gaming system. The host need not be personal computer but may be, for example, a games console such as Sony Playstation 2 or Microsoft X-box. The MCU and/or the transceiver circuit may be integrated into the system ASIC. Different signals may be used to switch the transceiver circuit between USB and SE modes. For example, the transceiver circuit can be switched into USB mode by application of a ‘1’ to the SE mode line and into SE mode by use of a ‘0’. Alternatively, a more complicated signalling arrangement using data bus communication may be used. 

1. A communication interface for permitting an electronic device to be in communication with another electronic device using first or second data transmission modes, wherein said first mode of data transmission comprises single-ended asynchronous data transmission and wherein said second mode of data transmission comprises USB differential transmission of data, the interface comprising: first communication means for communication using said first mode; second communication means for communication using said second mode; switching means for selectively connecting the first/second communication means to a common transmission path based on means for determining the mode of data transmission on said common transmission path; first and second input/output data lines; wherein the interface is arranged to use the first and second input/output data lines for data transmission in said second USB differential data transmission mode and in said first single-ended asynchronous data transmission mode.
 2. An interface according to claim 1, wherein said first and second input/output data lines are used to transmit and receive data using said second mode of data transmission.
 3. An interface according to claim 1 or 2, wherein said first input/output data line is used to receive data and said second input/output data line is used to transmit data using said first mode of data transmission.
 4. An interface according to claim 1, wherein said first input/output data line is used to receive and transmit data using said first mode of data transmission.
 5. An interface according to claim 1, wherein said second input/output data line is used to receive and transmit data using said first mode of data transmission.
 6. An interface according to claim q, wherein said first and second input/output data lines are connectable to a data bus.
 7. An interface according to claim 1, further comprising a connector for receiving a data bus.
 8. An interface according to claim 7, wherein the connector conforms to the USB specification.
 9. An interface according to claim 1, wherein the first mode of data transmission uses a first set of voltage levels.
 10. An interface according to claim 9, wherein the second mode of data transmission uses a second, different set of voltage levels.
 11. An interface according to claim 10, wherein said switching means comprises means for shifting the first or second set of voltage levels to another set of voltage level.
 12. An interface according to claim 1, wherein the means for determining the mode of data transmission comprises means for sensing a status line.
 13. An interface according to claim 1, wherein the means for determining the mode of data transmission comprises means for detecting a power supply line.
 14. An interface according to claim 1, incorporated into the electronic device.
 15. An interface according to claim 1, wherein said first communication means is configured for full-duplex communication.
 16. An interface according to claim 1, wherein said first communication means is half-duplex communication.
 17. An electronic device including an interface according to claim
 1. 18. An interface according to claim 1, wherein the first and second input/output lines are used for data transmission to/from two different devices. 